package com.example.entity.vo.algorithmconfig;


import com.alibaba.fastjson.annotation.JSONType;
import com.example.entity.CoverModeEnum;
import lombok.Data;

@Data
@JSONType(typeName = "COVER")  // 指定类型名，用于反序列化
public class CoverAlgorithmConfig extends AlgorithmConfig {


    private CoverModeEnum mode;

    private Integer prefix;

    private Integer suffix;

    private Integer start;

    private Integer end;

    private String keyword;

    private String maskChar;

    @Override
    public String generateDesc() {
        return mode != null ? mode.generateDesc(this) : "";
    }
}
